package com.atguigu04.override.exer1;

/**
 * ClassName: Kids
 * Package: com.atguigu03._extends.exer1
 * Description:
 *
 * @Author xiao_qi
 * @Create 2024/5/9 21:06
 * @Version 1.0
 */
public class Kids extends ManKind {
    int yearsOld;
    public void printAge(){
        System.out.println(yearsOld);
    }

    public Kids(int sex,int salary,int yearsOld) {
        super();
        this.yearsOld = yearsOld;
    }

    @Override
    public void employeed() {
        System.out.println("Kids should study and no job.");
    }
}
